package dao;
import tool.RowMapper;
import tool.BaseDao;
import java.util.List;
import java.sql.SQLException;
import java.sql.ResultSet;
import entity.ModeltbEntity;
import dao.mapper.ModeltbDAOI;

/**
*@author JiangFan
*/
public class ModeltbDAO extends BaseDao implements ModeltbDAOI {

}
class ModeltbRowMapper implements RowMapper<ModeltbEntity>{
	@Override
	public ModeltbEntity rowmap(ResultSet set) throws  SQLException{
		return new ModeltbEntity(
			set.getString("model_id"),
			/*set.getString("model_name"),*/
			set.getInt("model_father"),
			set.getString("size_id"),
			set.getString("memory_id"),
			set.getString("color_id")
		);
	}
}
